package com.zzxx.mapper;

import com.zzxx.pojo.Member;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberMapper {
	@Select("select * from member where id = #{id}")
	public Member findById(String id);

	@Update("update member set name = #{name}, nickname = #{nickname}, phoneNum = #{phoneNum}, email = #{email} where id = #{id}")
	public void update(Member member);
}
